package com.ccrfid.rmc6.repository.business.prison.rollcall;

import com.ccrfid.rmc6.entity.business.prison.rollcall.PrisonRollcallPlaceEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface PrisonRollcallPlaceRepository extends Repository<PrisonRollcallPlaceEntity, Long> {

    List<PrisonRollcallPlaceEntity> getAllBy();

    List<PrisonRollcallPlaceEntity> getAllByPid(Long pid);

    PrisonRollcallPlaceEntity getById(Long id);

    Boolean existsById(Long id);

    Boolean existsByPid(Long pid);

    PrisonRollcallPlaceEntity save(PrisonRollcallPlaceEntity entity);

    void deleteById(Long id);

    void deleteAllByIdIn(List<Long> idList);
}
